home *** CD-ROM | disk | FTP | other *** search
- global gMovieSprite
-
- on checkKey
- set userKey to the key
- set userKeyCode to the keyCode
- if (userKey >= "0") and (userKey <= "9") then
- set the soundLevel to value(userKey)
- exit
- end if
- if commandKey() or developersKey() then
- if userKey = "A" then
- exit
- else
- if userKey = "B" then
- exit
- else
- if userKey = "F" then
- exit
- else
- if userKey = "G" then
- exit
- else
- if userKey = "P" then
- exit
- else
- if userKey = "N" then
- exit
- else
- if userKey = "S" then
- exit
- else
- if (userKey = "L") or (userKey = "O") then
- exit
- else
- if (userKey = "Q") or (userKey = "E") or (userKey = "X") then
- exit
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- if developersKey() then
- put "the keyCode: " & the keyCode & ", the key: " & the key
- if QT(gMovieSprite) then
- if the keyCode = 123 then
- set the movieRate of sprite gMovieSprite to 0
- updateStage()
- set the movieTime of sprite gMovieSprite to the movieTime of sprite gMovieSprite - 6
- updateStage()
- put "The movieTime of sprite gMovieSprite: " & the movieTime of sprite gMovieSprite
- else
- if the keyCode = 124 then
- set the movieRate of sprite gMovieSprite to 0
- updateStage()
- set the movieTime of sprite gMovieSprite to the movieTime of sprite gMovieSprite + 6
- updateStage()
- put "The movieTime of sprite gMovieSprite: " & the movieTime of sprite gMovieSprite
- else
- if the keyCode = 125 then
- set the movieRate of sprite gMovieSprite to 0
- updateStage()
- put "The movieTime of sprite gMovieSprite: " & the movieTime of sprite gMovieSprite
- else
- if the keyCode = 126 then
- set the movieRate of sprite gMovieSprite to 0
- updateStage()
- set the movieRate of sprite gMovieSprite to 1
- updateStage()
- put "The movieTime of sprite gMovieSprite: " & the movieTime of sprite gMovieSprite
- end if
- end if
- end if
- end if
- end if
- end if
- end
-
- on developersKey
- return the shiftDown and the controlDown
- end
-
- on commandKey
- if the machineType = 256 then
- return the controlDown
- else
- return the commandDown
- end if
- end
-